import request from '@/utils/request'

// 查询美团入库单主列表
export function listWhin(query) {
  return request({
    url: '/mt/whin/list',
    method: 'get',
    params: query
  })
}

// 查询美团入库单主详细
export function getWhin(id) {
  return request({
    url: '/mt/whin/' + id,
    method: 'get'
  })
}

// 新增美团入库单主
export function addWhin(data) {
  return request({
    url: '/mt/whin',
    method: 'post',
    data: data
  })
}

// 修改美团入库单主
export function updateWhin(data) {
  return request({
    url: '/mt/whin',
    method: 'put',
    data: data
  })
}

// 删除美团入库单主
export function delWhin(id) {
  return request({
    url: '/mt/whin/' + id,
    method: 'delete'
  })
}

// 导出美团入库单主
export function exportWhin(query) {
  return request({
    url: '/mt/whin/export',
    method: 'get',
    params: query
  })
}
